package com.ews.onlineexchange.model;

import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;

@Entity
public class BestTradeEvaluation extends DataEntity {

	/**
	 * 
	 */
	private static final long		serialVersionUID	= 1L;

	private Trade					trade;
	private RequirementDefination	requirementDefination;
	private BigDecimal				score;

	@ManyToOne
	@NotNull
	public Trade getTrade() {
		return trade;
	}

	public void setTrade( Trade trade ) {
		this.trade = trade;
	}

	@ManyToOne
	@NotNull
	public RequirementDefination getRequirementDefination() {
		return requirementDefination;
	}

	public void setRequirementDefination( RequirementDefination requirementDefination ) {
		this.requirementDefination = requirementDefination;
	}

	@NotNull
	public BigDecimal getScore() {
		return score;
	}

	public void setScore( BigDecimal score ) {
		this.score = score;
	}

}
